package com.naiterui.ehp.ps.sms.utils;

import org.springframework.security.crypto.password.StandardPasswordEncoder;

public class DEncryptionUtils {

    public static String standPwdEncoder(String rawStr) {
        StandardPasswordEncoder encoder = new StandardPasswordEncoder();
        return encoder.encode(rawStr);
    }

    public static boolean standPwdMatch(String rawPassword, String password) {
        StandardPasswordEncoder encoder = new StandardPasswordEncoder();
        return encoder.matches(rawPassword, password);
    }
}
